/**
 * @author Zephyr
 * @Date   2011-11-29
 */

package com.zpyr.common;

import java.text.SimpleDateFormat;
import java.util.GregorianCalendar;

public class DateUtil {

	public static String currentDate() {
		return currentDate("yyyyMMddhhmmss");
	}
	
	public static String currentDate(String format) {
		// format : yyyy년 MM월 dd일 hh시 mm분 ss초
		String date = "";
		
		GregorianCalendar calendar = new GregorianCalendar();
		SimpleDateFormat dateFormat = 
				new SimpleDateFormat(format);
		
		date = dateFormat.format( calendar.getTime() );
		
		return date;
	}
	
}
